﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using VatTuDTO;
using VatTuDAO1;

namespace VatTuBUS1
{
    public class LoaiSanPhamBUS
    {
        //-------------------------------------------------------------
        public List<LoaiSanPhamDTO> SelectLoaiSanPham(int maChungLoai)
        {
            return new LoaiSanPhamDAO().SelectLoaiSanPham(maChungLoai);
        }

        //----------------------------------------------------------
        public List<LoaiSanPhamDTO> SelectLoaiSanPham()
        {
            return new LoaiSanPhamDAO().SelectLoaiSanPham();
        }


        //----------------------------------------------------------
        public LoaiSanPhamDTO SelectLoaiSanPhamTheoMaLoai(int maLoai)
        {
            return new LoaiSanPhamDAO().SelectLoaiSanPhamTheoMaLoai(maLoai);
        }


        //-----------------------------------------------------
        public Boolean InsertLoaiSanPham(LoaiSanPhamDTO dto)
        {
            return new LoaiSanPhamDAO().InsertLoaiSanPham(dto);
        }


        //----------------------------------------------------
        public Boolean UpdateLoaiSanPham(LoaiSanPhamDTO dto)
        {
            return new LoaiSanPhamDAO().UpdateLoaiSanPham(dto);
        }


        //------------------------------------------------------
        public Boolean DeleteLoaiSanPham(int maLoai)
        {
            return new LoaiSanPhamDAO().DeleteLoaiSanPham(maLoai);
        }
    }
}
